package com.ita.client;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;

import com.ita.controller.ClientController;

public class FtpClent {

	public static void main(String[] args) throws Exception {
		Socket socket = new Socket("127.0.0.1", 8001);
		OutputStream out = socket.getOutputStream();
		InputStream in = socket.getInputStream();
		BufferedReader reader = new BufferedReader(new InputStreamReader(in));
		String tip1 = reader.readLine();
		System.out.println(tip1);
//		ClientController controller=new ClientController();
//		controller.commandDispatch(in, out);
		Scanner scanner=new Scanner(System.in);
//		String cmd=scanner.next();
//		System.out.println(cmd);
		
		out.write(scanner.next().getBytes());
		String string=reader.readLine();
		System.out.println(string);
		String yString=scanner.nextLine();
		out.write(yString.getBytes());
		String tip=reader.readLine();
		System.out.println(tip);

	}

}
